package com.itheima.dao;

import com.itheima.domain.Goods;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Repository;

/**
 * @author Administrator
 * <p>
 * 模拟这是一个dao接口
 */
@Repository
public class GoodsDao {

    @Value("${server.port}")
    private int port;

    public Goods findOne(int id) {
        Goods goods = new Goods(1, "iphone12proMax ----- " + port, 11990D, 10000);

        return goods;
    }
}
